using Microsoft.Xna.Framework;

namespace GameFrameworkLibraly.BaseObjects
{
    public abstract class GameObjectBase
    {
        protected MyGame Game;
        protected int UpdateCount;

        /// <summary>
        /// Constructor for the object
        /// </summary>
        /// <param name="game">A reference to the XNA game class inside which the object resides</param>
        protected GameObjectBase(MyGame game)
        {
            Game = game;
        }

        /// <summary>
        /// Updates the state of the object
        /// </summary>
        /// <param name="gameTime"></param>
        public virtual void Update(GameTime gameTime)
        {
            UpdateCount += 1;
        }
    }
}
